package com.prj.ufdm.cloud.ms.auth.enums;

public enum SysUserStatusEnum {
	
	SYSUSER_STATUS_0("0","禁用"),
	SYSUSER_STATUS_1("1","启用");
	
	private String code;
	private String message;
	
	SysUserStatusEnum(String code,String message){
		this.code = code;
		this.message = message;
	}

	public static String getMessageByCode(String retCode){
		String rtnRetCode = "";
		for (SysUserStatusEnum usedStatusEnum : SysUserStatusEnum.values()) {
			if(usedStatusEnum.code.equals(retCode)){
				rtnRetCode = usedStatusEnum.message;
			}
	    }
		return rtnRetCode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
